<?php

namespace app\index\model;

use think\Model;

class Users extends Model
{
    public $map = [];
    public $fields = '*';

    public function initialize()
    {
        parent::initialize();
        $this->map['status'] = ['neq','0'];
    }

    public function get_one()
    {
        return $this->field($this->fields)->where($this->map)->find();
    }
}